import request from '@/utils/request'

export function addInjury(data) {
  return request({
    url: '/chinasoccer/injury',
    method: 'post',
    data
  })
}

export function getAllplayer(data) {
  return request({
    url: '/chinasoccer/allplayer',
    method: 'get',
    data
  })
}

export function getAlldoctor(data) {
  return request({
    url: '/chinasoccer/doctor',
    method: 'get',
    data
  })
}

export function updateInjury(data) {
  return request({
    url: `/chinasoccer/injury`,
    method: 'put',
    data
  })
}

export function deleteInjury(id) {
  return request({
    url: `/chinasoccer/injury/${id}`,
    method: 'delete'
  })
}
